<!DOCTYPE html>
<!-- v1.6.6.2 RDPROJECT-277 xx 2013-10-27 start -->
<!-- 新增页面 -->
<!-- v1.6.6.2 RDPROJECT-277 xx 2013-10-27 end -->
<html>
<#include "../../head.html">
<body>
<table class="mc">
    <tr>
        <td class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                    <#include "../../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                    <#include "../left.html">
                </div>
            </div>
            <!--左侧导航---}-->
        </td>
        <td class="mc-m">
            <div class="navToggle"></div>
        </td>
        <td class="mc-r">
            <!--顶部导航---{-->
            <#include "../../topNav.html">
            <!--顶部导航---}-->
            
            <div id="breadcrumbNav">
			    <div class="home-icon"></div>
			    <ul>
			        <li>基金信托</li>
			        <li class="v">基金信托认购信息列表</li>
			    </ul>
			</div>

            <!--工具栏--{-->
            <div id="toolbar" class="clearfix">
            	<div class="toolbor-module export">
            		<input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
            	</div>
            	<div class="toolbor-module search">
                   <input type="button" value="搜索"  class="input-button" onclick="search();">
                </div>
                <div class="toolbor-module search">
                    <div style="height:22px;line-height:22px;float:left;">状态：</div>
					<div class="select-box" id="status">
                        <div class="tag-select">全部</div>
                        <ul class="tag-options">
							<li data-value="99" <#if status??&&status==99 >data-selected="selected"</#if> class="open-selected">全部</li>
                           	<li data-value="0" <#if status??&&status==0 >data-selected="selected"</#if>>未电联</li>
                           	<li data-value="1" <#if status??&&status==1 >data-selected="selected"</#if>>已电联</li>
                        </ul>
                    </div>
                </div>
                <div class="toolbor-module search">
                    <div style="height:22px;line-height:22px;float:left;">类型：</div>
					<div class="select-box" id="type">
                        <div class="tag-select">全部</div>
                        <ul class="tag-options">
                           <li data-value="0" <#if type??&&type==0 >data-selected="selected"</#if> class="open-selected">全部</li>
                           <li data-value="1" <#if type??&&type==1 >data-selected="selected"</#if>>基金</li>
                           <li data-value="2" <#if type??&&type==2 >data-selected="selected"</#if>>信托</li>
                        </ul>
                    </div>
                </div>
                <div class="toolbor-module search">
                    <input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
            	</div>
                <div class="toolbor-module search">
                    <input type="text" name="keywords" id="keywords" value="请输入关键字" data-value="请输入关键字" class="search-value">
            	</div>
            </div>
            <!--工具栏--}-->

            <div id="main" class="clearfix">
                <form action="" method="post">
                    <table class="data-list">
                        <tr class="header">
                            <td>ID</td>
                            <td>标题</td>
                            <td>认购人</td>
                            <td>认购资金(万)</td>
                            <td>认购时间</td>
                            <td>状态</td>
                            <td>操作</td>
                        </tr>
                        <#import "../../../common/function.html" as func>
                        <#list list as item>
                            <tr class="s">
                                <td>${(item.id!)?c}</td>
                                <td title="${item.name}" class="tal">
                                    <span style="color:#FF0000">【<#if item.type==1>基金<#elseif item.type==2>信托</#if>】</span>
                                    <a href="${webroot}/fund/detail.html?fundId=${item.fundId?c}" target="_blank">${item.name!}</a>
                                </td>
                                <td>
                                    <a href="javascript:void(0)" onclick='alertPop("用户详细信息查看","url:get?${request.getContextPath()}/admin/attestation/viewUserInfo.html?username=${item.username!}",500,230,"true","","true","text")'>
                                        ${item.username!}
                                    </a>
                                </td>
                                <td>${item.account?c}</td>
                                <td>${dateformat(item.addTime?c!)}</td>
                                <td><#if item.status==0>未电联<#elseif item.status==1>已电联</#if></td>
                                <td>
                                	<a href="/admin/fundTender/modify.html?id=${item.id?c}">维护</a>
                                </td>
                            </tr>
                        </#list>
                    </table>
                </form>

                <!--底部工具栏--{-->
                <div id="bottomToolbar" class="clearfix">
                    <div class="other-tool">
                        <dl class="refresh-data">
                            <dt class="refresh-data-icon"></dt>
                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                        </dl>
                    </div>

                    <!--翻页系统--{-->
                    <div class="container">
                        <#import "../../../common/page.html" as pager>
                        <@pager.pagination page=page url=currentUrl map=param style="style1" />
                    </div>
                    <!--翻页系统--}-->
                </div>
                <!--底部工具栏--}-->

                <script>
                    var urls = '?search=true';
                    var xlsurl = '?actionType=export';
                    function search(){
                        var sou = "";
                        var keywords = $("#keywords").val();
                        if (keywords.length>0 && keywords!="请输入关键字"){
                            sou += "&keywords="+keywords;
                        }
                        var username = $("#username").val();
                        if (username.length>0 && username!="请输入用户名"){
                            sou += "&username="+username;
                        }
    					var type = $("#type").find(".open-selected").attr("data-value");
    					if(type>0){
    						sou += "&type="+type;
    					}
    					var status = $("#status").find(".open-selected").attr("data-value");
   						sou += "&status="+status;
                        location.href = urls+sou;
                    }
                    function exportxls(){
                   		var sou = "";
                   		var keywords = $("#keywords").val();
                   		if (keywords.length>0 && keywords!="请输入关键字"){
                            sou += "&keywords="+keywords;
                        }
                   		var username = $("#username").val();
                        if (username.length>0 && username!="请输入用户名"){
                            sou += "&username="+username;
                        }
    					var type = $("#type").find(".open-selected").attr("data-value");
    					if(type>0){
    						sou += "&type="+type;
    					}
    					var status = $("#status").find(".open-selected").attr("data-value");
   						sou += "&status="+status;
                        location.href = xlsurl+sou;
                    }
                </script>
            </div>

        </td>
    </tr>
    <tr>
        <!--尾部--{-->
        <td colspan="3" class="mc-b"><#include "../../foot.html"></td>
        <!--尾部--}-->
    </tr>
</table>

</body>
</html>
<#include "../../jsPage.html">
